home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / AppleSearch / Windows / AppleSearch for Windows SDK / H / NPCONST.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-25  |  4.3 KB  |  106 lines  |  [TEXT/dosa]

  1. /*
  2.     File:        NPConstants.h
  3.  
  4.     Contains:    Constants related to the newspaper.
  5.  
  6.     Copyright (C) 1992-1995 Apple Computer, Inc.  All rights reserved.
  7.  
  8.     Change History (most recent first):
  9.  
  10.         <10+>      8/8/93    KAZU        added header
  11.  
  12. */
  13. /*===============================================================================================================
  14.  
  15.         ASUpdateConstants.h
  16.     
  17.           Copyright Apple Computer, Inc. 1992-1995
  18.         All rights reserved
  19.  
  20. ===============================================================================================================*/
  21.  
  22. #ifndef __NPCONSTANTS__
  23. #define __NPCONSTANTS__
  24.  
  25. //_______________________________________________________________________________________________________________
  26. //____________________________________________________ INCLUDES _________________________________________________
  27. //_______________________________________________________________________________________________________________
  28.  
  29. #ifndef __NPTYPES__
  30. #include "NPTypes.h"
  31. #endif                                                            // __NPTYPES__
  32.  
  33. //_______________________________________________________________________________________________________________
  34. //____________________________________________________ CONSTANTS ________________________________________________
  35. //_______________________________________________________________________________________________________________
  36. // General constants
  37.  
  38. const OSType        kAppleSearchUpdateFileType            = STR2CHAR4("BGNP");        // file type for AppleSearch compatible update
  39. const OSType        kAppleSearchPartialUpdateFileType = STR2CHAR4("BGPP");        // file type for update that are being built
  40.  
  41. //_______________________________________________________________________________________________________________
  42. // Constants for newspaper types
  43.  
  44. const ASUType kAppleSearchTextUpdate                 = STR2CHAR4("NP01");
  45. const ASUType kAppleSearchStyledUpdate                 = STR2CHAR4("NP02");
  46. const ASUType kAppleSearchMultimediaUpdate         = STR2CHAR4("NP03");
  47.  
  48. //_______________________________________________________________________________________________________________
  49. // Constants for article types
  50.  
  51. const ASUArticleType kTextArticleItem                = STR2CHAR4("TEXT");
  52. const ASUArticleType kHighlightedTextArticleItem = STR2CHAR4("HTXT");
  53. const ASUArticleType kStyledTextArticleItem        = STR2CHAR4("STXT");
  54. const ASUArticleType kFixedWidthTextArticleItem    = STR2CHAR4("FWTX");
  55. const ASUArticleType kFixedHeightTextArticleItem= STR2CHAR4("FHTX");
  56. const ASUArticleType kFixedSizeTextArticleItem    = STR2CHAR4("FSTX");
  57. const ASUArticleType kPICTArticleItem                = STR2CHAR4("PICT");
  58. const ASUArticleType kTIFFArticleItem                = STR2CHAR4("TIFF");
  59. const ASUArticleType kAcrobatArticleItem            = STR2CHAR4("ACBT");
  60. const ASUArticleType kAnnotatedArticleItem        = STR2CHAR4("ANTD");
  61. const ASUArticleType kQuickTimeArticleItem        = STR2CHAR4("QTIM");
  62. const ASUArticleType kSoundArticleItem                = STR2CHAR4("SND ");
  63. const ASUArticleType kCompoundArticleItem            = STR2CHAR4("CMPD");
  64.  
  65. //______________________________________________________7_________________________________________________________
  66. // Constants for data containers
  67.  
  68. const ASUDCType        ASUDCTypeArticle                = STR2CHAR4("ARTL");
  69. const ASUDCType        ASUDCTypeFileHeader            = STR2CHAR4("FHDR");
  70. const ASUDCType        ASUDCTypeArticleListHeader    = STR2CHAR4("ALHD");
  71. const ASUDCType        ASUDCTypeFree                    = STR2CHAR4("FREE");
  72. const ASUDCType        ASUDCTypeCompressed            = STR2CHAR4("COMP");
  73. const ASUDCType        ASUDCTypeWildcard                = STR2CHAR4("****");
  74.  
  75.  
  76. //_______________________________________________________________________________________________________________
  77. // Misc.
  78.  
  79. const long            kVersion1                        = 1;
  80. const ASUDataSize    kVersion1FileHeaderSize        = 16;
  81. const ASUDataSize    kVersion1DCHeaderSize        = 16;
  82.  
  83.  
  84. //_______________________________________________________________________________________________________________
  85. // Error codes
  86.  
  87. const OSErr    kIncompleteUpdateFileErr    = 2201;
  88. const OSErr    kArticleIndexRangeErr        = 2301;
  89.  
  90. const OSErr    kDataTooLargeErr                = 2401;
  91.  
  92. const OSErr    kDataContainerNotFoundErr    = 2501;
  93. const OSErr    kNPOutOfMemoryErr                = 2001;
  94. const OSErr    kNilPtrErr                        = 2002;
  95.  
  96. //_______________________________________________________________________________________________________________
  97.  
  98.  
  99. #endif                                                            // __NPCONSTANTS__
  100.  
  101. //
  102. // $Log: /bogart/asu/shared/NPCONST.H $
  103. // 
  104. // 4     10/27/94 6:56p Rich_johnson
  105. //
  106.